package com.future.common.api.auth;

import lombok.Getter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * @ClassName : CampusUser
 * @Author : lby
 * @Date: 2020/12/8 15:55
 * @Description :
 */
public class CampusUser extends User {
    /**
     * 用户ID
     */
    @Getter
    private Integer id;
//    /**
//     * 部门ID
//     */
//    @Getter
//    private Integer deptId;
//
//    /**
//     * 租户ID
//     */
//    @Getter
//    private Integer tenantId;

//    @Getter
//    private SysUser sysUser;


    public CampusUser(String username, String password, Collection<? extends GrantedAuthority> authorities, Integer id) {
        super(username, password, authorities);
        this.id = id;
    }
}
